import request from '@/utils/request'

// 取消分摊收款流水
export function cancelClaim(id) {
  return request({
    url: '/collectionFlow/collectionFlow/cancelClaim/' + id,
    method: 'get'
  })
}

// 查询收款流水列表
export function listCollectionFlow(query) {
  return request({
    url: '/collectionFlow/collectionFlow/list',
    method: 'get',
    params: query
  })
}

// 查询收款流水详细
export function getCollectionFlow(id) {
  return request({
    url: '/collectionFlow/collectionFlow/' + id,
    method: 'get'
  })
}

// 保存收款流水
export function saveCollectionFlow(data) {
  return request({
    url: '/collectionFlow/collectionFlow/save',
    method: 'post',
    data: data
  })
}

// 删除收款流水
export function delCollectionFlow(id) {
  return request({
    url: '/collectionFlow/collectionFlow/' + id,
    method: 'delete'
  })
}

// 删除收款流水
export function deleteDealDistribution(id) {
  return request({
    url: '/collectionFlow/collectionFlow/deleteDealDistribution/' + id,
    method: 'delete'
  })
}

// 导出收款流水
export function exportCollectionFlow(query) {
  return request({
    url: '/collectionFlow/collectionFlow/export',
    method: 'get',
    params: query
  })
}
